package cn.outsourcing.supermarket.converter.transform;

import java.text.SimpleDateFormat;

/**
 * 时间戳转换器
 *
 * @author gzkemays
 * @since 2021/10/23 4:09
 */
public class TimestampTransform {

  public String timestampToStringBySecond(Integer timestamp) {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    long time = timestamp * 1000L;
    return sdf.format(time);
  }
}
